/*
 * RGBMap.h
 *
 *  Created on: Oct 10, 2012
 *      Author: burek
 */

#ifndef RGBMAP_H_
#define RGBMAP_H_

#include "integers.h"
#include "math/Vec3D.h"

struct RGBMap
{
	Vec3D *data;
	Uint32 width;
	Uint32 height;

	RGBMap(Uint32 Width, Uint32 Height);
	~RGBMap();

	void pset(Uint32 x, Uint32 y, Vec3D texel);
	void pset(Uint32 x, Uint32 y, float R, float G, float B);
	Vec3D pget(Uint32 x, Uint32 y) const;
	Vec3D sample(float x, float y) const;

	void clear();
};


#endif /* RGBMAP_H_ */
